<template>
  <div class="building-container">
    <!-- 方案一：使用指令控制权限 -->
    <el-button 
      v-auth-btn="'park:building:add_edit'" 
      type="primary" 
      @click="addBuilding">
      添加楼宇
    </el-button>

    <!-- 方案二：使用组件控制权限
    <auth-button btn-string="park:building:remove">
      <el-button 
        size="mini" 
        type="text" 
        @click="confirmDel(scope.row.id)">
        删除
      </el-button>
    </auth-button> -->
  </div>
</template> 